package com.gs.dao.jdbc.impl.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.gs.bean.Case;

public class CaseRowMapper implements RowMapper {

	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		Case obj = new Case();
		obj.setId(rs.getInt("id"));
		obj.setName(rs.getString("name"));
		obj.setUrl(rs.getString("url"));
		obj.setLogo(rs.getString("logo"));
		obj.setDescribe(rs.getString("describe"));
		return obj;
	}

}
